home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
wics.zip
/
DEMO.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-05
|
2KB
|
75 lines
//==============================================================================================
//
// WICS Demonstration Application
// Version 1.00
//
// DEMO.CPP main application code file
// February 1993
//
// Copyright (C) 1993 Microdyne Development Technologies
//
//==============================================================================================
//
// Abstract:
//
// This is a demonstration program to show off the WICS (Windows Interface Construction Set) custom controls and
// Borland Style Common Dialogs.
//
//==============================================================================================
#include <owl.h>
#include <wics.h>
#include <demorc.h>
#include <demo.h>
//-------------------------------------------------------------------------------------
// Construct the TDemoApp's MainWindow data member
//-------------------------------------------------------------------------------------
void TDemoApp::InitMainWindow()
{
MainWindow = new TDemoWindow("WICS Demo", DEMO_MENU);
}
//-------------------------------------------------------------------------------------
// Initialize each MS-Windows application instance.
//-------------------------------------------------------------------------------------
void TDemoApp::InitInstance()
{
TApplication::InitInstance();
}
//-------------------------------------------------------------------------------------
// Initialize the application.
//-------------------------------------------------------------------------------------
void TDemoApp::InitApplication()
{
TApplication::InitApplication();
idHelpMessage = RegisterWindowMessage (HELPMSGSTRING);
idFindTextMessage = RegisterWindowMessage (FINDMSGSTRING);
}
//-------------------------------------------------------------------------------------
// Main program loop for LIDB Application.
//-------------------------------------------------------------------------------------
int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
HINSTANCE hLib1 = LoadLibrary( "BWCC.DLL" );
HINSTANCE hLib2 = LoadLibrary( "WICSCC.DLL" );
HINSTANCE hLib3 = LoadLibrary( "WCD.DLL" );
TDemoApp DemoApp ("WICS Demo", hInstance, hPrevInstance, lpCmdLine, nCmdShow);
DemoApp.Run();
FreeLibrary (hLib1);
FreeLibrary (hLib2);
FreeLibrary (hLib3);
return DemoApp.Status;
}